﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IOT4Week1Day1.Domain.Models
{
    public class AreaInfo
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 地区名
        /// </summary>
        [StringLength(30)]
        [Required]
        public string AreaName { get; set; }

        /// <summary>
        /// 父Id
        /// </summary>
        public int PId { get; set; }
    }
}
